package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

public interface WmNewsService extends IService<WmNews> {
    //文章的上下架
    public ResponseResult downOrUp(WmNewsDto dto);

    //发布文章或保存草稿
    public ResponseResult submitNews(WmNewsDto dto);

    //根据条件查询文章列表
    public ResponseResult findAll(WmNewsPageReqDto dto);
}
